using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DataAccessLayer;
using SecurityAccessLayer;

namespace WebUI
{
    public partial class CreateInvoice : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            btnSave.Visible = false;
            gvFinalizedJobs.Visible = false;

        }

        protected void btnCreate_Click(object sender, EventArgs e)
        {
            btnCreate.Visible = false;
            btnSave.Visible = true;
            gvFinalizedJobs.Visible = true;

            gvFinalizedJobs.DataSource = DAL.GetAllOpenJobs((int)Session["UserID"]);
            gvFinalizedJobs.DataBind();

        }

        protected void btnSave_Click(object sender, EventArgs e)
        {
            btnCreate.Visible = true;
            gvFinalizedJobs.Visible = false;
        }
    }
}
